package cn.wangchao.org.mapper;

import cn.wangchao.org.domain.Shop;
import cn.wangchao.basic.mapper.BaseMapper;
import cn.wangchao.org.vo.ShopVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wangchao
 * @since 2022-06-12
 */
public interface ShopMapper extends BaseMapper<Shop> {

    /**
     * 店铺入驻
     * @param name
     */
    Shop loadByName(String name);

    /**
     * 批量新增导入
     * @param shops
     */
    void batchSave(List<Shop> shops);

    /**
     * 报表
     * @return
     */
    List<ShopVo> queryEcharts();
}
